package com.zjx.shop.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zjx.shop.common.utils.PageUtils;
import com.zjx.shop.common.utils.PageParams;
import com.zjx.shop.product.entity.AttrEntity;
import com.zjx.shop.product.entity.VO.AttrGroupRelationVo;
import com.zjx.shop.product.entity.VO.AttrRespVo;
import com.zjx.shop.product.entity.VO.AttrVo;

import java.util.List;
import java.util.Map;


/**
 * 商品属性
 *
 * @author zjx
 * @email 1569675735@qq.com
 * @date 2023-05-06 15:23:28
 */
public interface AttrService extends IService<AttrEntity> {

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    void saveAttr(AttrVo attr);

    PageUtils queryPage(PageParams params);

    void deleteRelation(AttrGroupRelationVo[] vos);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    PageUtils getNoRelationAttr(PageParams params, Long attrgroupId);

    PageUtils queryBaseAttrPage(PageParams params, Long catelogId, String attrType);

    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

